package org.zn.mvcbase.rest.naming;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

public class ServiceNaming implements Naming, java.io.Serializable{
	
	private static final long serialVersionUID = 1L;

	private String name;
	
	private Map<String,Naming> namings=new HashMap<String, Naming>();

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String getValue() {
		// TODO Auto-generated method stub
		return name;
	}

	@Override
	public Collection<Naming> getNamingList() {
		// TODO Auto-generated method stub
		return namings.values();
	}

	
	@Override
	public void put(Naming naming) {
		// TODO Auto-generated method stub
		namings.put(naming.getName(), naming);
	}

	@Override
	public Naming get(String name) {
		// TODO Auto-generated method stub
		return namings.get(name);
	}

	@Override
	public void remove(String name) {
		namings.remove(name);
	}
	
	


}
